package com.huika.renrench.support.bean;

import java.io.Serializable;
/**
 * 
 * @description 详细描述：查询获取的联系人
 * @author samy
 * @date 2014年6月5日 上午11:42:05
 */
public class ContactBean implements Serializable, Comparable<ContactBean> {
	/** 
	 * @description：
	 * @author lzt
	 * @date 2014年7月31日 下午1:50:15
	 */
	private static final long serialVersionUID = 1L;
	private int contactId;
	private String phoneNum;
	private String displayName;
	public String pinyin_dis;
	private String status;
	private String friendName;

	private String userId;

	/** 是否是A-Z或# */
	private String sortLetters = "";

	public int getContactId() {
		return contactId;
	}

	public void setContactId(int contactId) {
		this.contactId = contactId;
	}

	public String getPhoneNum() {
		return phoneNum;
	}

	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSortLetters() {
		return sortLetters;
	}

	public void setSortLetters(String sortLetters) {
		this.sortLetters = sortLetters;
	}

	public String getFriendName() {
		return friendName;
	}

	public void setFriendName(String friendName) {
		this.friendName = friendName;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Override
	public int compareTo(ContactBean another) {
		if (another.getSortLetters().equals("#")) {
			// 表示当前的大
			return -1;
		} else if (this.getSortLetters().equals("#")) {
			// 表示当前的小
			return 1;
		} else {
			return this.getSortLetters().compareTo(another.getSortLetters());
		}
	}

	@Override
	public String toString() {
		return "ContactBean [contactId=" + contactId + ", phoneNum=" + phoneNum + ", displayName=" + displayName
				+ ", pinyin_dis=" + pinyin_dis + ", status=" + status + ", friendName=" + friendName + ", userId="
				+ userId + ", sortLetters=" + sortLetters + "]";
	}

}
